//
//  InformationViewController.m
//  BSLCar
//
//  Created by 梁毅 on 15/5/30.
//  Copyright (c) 2015年 lyz. All rights reserved.
//

#import "InformationViewController.h"

@interface InformationViewController ()
{
    UIWebView *webView;
}
@end

@implementation InformationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIBarButtonItem *item = [[UIBarButtonItem alloc] init];
    item.title = @"返回";
    self.navigationItem.backBarButtonItem = item;
    [item release];
    
    self.navigationItem.title = @"即将销售详情";
    
    self.view.backgroundColor = [UIColor whiteColor];

    webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width  , self.view.frame.size.height)];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",self.str]]];
    [webView loadRequest:request];
    
    webView.scalesPageToFit = YES;
    webView.tintAdjustmentMode = UIViewTintAdjustmentModeAutomatic;
    [self.view addSubview:webView];
    
    [self.navigationItem.rightBarButtonItem release];
    [webView release];

    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
